package com.a01_2021.thousandstimes.instance.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.instance.entity.LearnToday;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author E1xP
 * @since 2021-03-28
 */
public interface ILearnTodayService extends IService<LearnToday> {

    LearnToday add(long userId, String content);

    List<LearnToday> get(long userId);

    LearnToday update(long userId, LearnToday learnToday) throws CustomException;

    List<LearnToday> getFromUserIdAndDate(long userId, LocalDate date);
}
